package com.hrt.vo;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;

import com.hrt.bean.ProductInfor;


/***********************************************************************
 * Module:  ProductDetails.java
 * 产品详细信息
 ***********************************************************************/
public class ProductDetailsVO implements Serializable {
	private static final long serialVersionUID = 420917312435392278L;

	/**
	 * 详细ID
	 * 
	 */
	private Long id;
	
	private Long proId;
	/**
	 * 产品编号
	 * 
	 */
	private String proCode;
	/**
	 * 产品名称
	 * 
	 */
	private String proName;

	/**
	 * 产品主图片
	 * 
	 */
	private String pic;
	/**
	 * 产品颜色
	 * 
	 */
	private String color;

	/**
	 * 成本价
	 * 
	 */
	private Double enterPrice = 0d;
	/**
	 * 零售价格
	 * 
	 */
	private Double salePrice = 0d;
	/**
	 * 描述
	 * 
	 */
	private String description;
	/**
	 * 库存量
	 * 
	 */
	private Long total = 0l;
	/**
	 * 产品录入人ID,关联后台用户表主键
	 * 
	 */
	private Long createId;
	/**
	 * 录入人名称
	 * 
	 */
	private String creator;
	/**
	 * 创建时间, 默认系统当前时间
	 * 
	 */
	private java.sql.Date creatTime=new java.sql.Date(new java.util.Date().getTime());
	/**
	 * 修改人,第一次插入数据时，修改人与创建人一致
	 * 
	 */
	private String editor;
	/**
	 * 产品修改人ID,关联后台用户表主键
	 * 
	 */
	private Long editorId;
	/**
	 * 最后修改时间,录入数据时，录入时间和最后修改时间一致
	 * 
	 */
	private java.sql.Date editTime;
	/**
	 * 删除标记 0未删除 1已删除
	 * 
	 */
	private Integer isdelete = 0;
	
	/**
	 * 是否是样品
	 * 0正式产品，1样品
	 */
	private Integer isdemo = 1;

	
	/** @pdRoleInfo migr=no name=ProductInfor assc=reference12 mult=1..1 side=A */
	private ProductInfor productInfor;
	
	/**
	 * 产品规格
	 * 宽度
	 */
	private Double width=0d;
	
	/**
	 * 产品规格
	 * 高度
	 */
	private Double height=0d;
	
	/**
	 * 产品规格
	 * 长度
	 */
	private Double longness=0d;

	
	
	/**
	 * 可用库存
	 */
	private Long useful=0l;
	
	/**
	 * 并发控制，版本号
	 */
	private Integer version=0;
	
	public Integer getVersion() {
		return version;
	}
	public void setVersion(Integer version) {
		this.version = version;
	}
	/**
	 * 产品组合
	 * */
	private List<GiftGroupVO> giftGroupVO;

	public Long getUseful() {
		return useful;
	}
	public void setUseful(Long useful) {
		this.useful = useful;
	}
	
	
	public Long getId() {
		return id;
	}

	public void setId(Long newId) {
		id = newId;
	}
	public Long getProId() {
		return proId;
	}

	public void setProId(Long proId) {
		this.proId = proId;
	}

	public void setProductInfor(ProductInfor productInfor) {
		this.productInfor = productInfor;
	}
	

	public String getProCode() {
		return proCode;
	}

	public void setProCode(String newProCode) {
		proCode = newProCode;
	}

	public String getProName() {
		return proName;
	}

	public void setProName(String newProName) {
		proName = newProName;
	}

	

	public String getPic() {
		return pic;
	}

	public void setPic(String newPic) {
		pic = newPic;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String newColor) {
		color = newColor;
	}

	
	public Double getEnterPrice() {
		return enterPrice;
	}

	public void setEnterPrice(Double newEnterPrice) {
		enterPrice = newEnterPrice;
	}

	public Double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(Double newSalePrice) {
		salePrice = newSalePrice;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String newDescription) {
		description = newDescription;
	}

	public Long getTotal() {
		
		if(total==null)
		{
			total=0l;
		}
		
		return total;
	}

	public void setTotal(Long newTotal) {
		total = newTotal;
	}

	public Long getCreateId() {
		return createId;
	}

	public void setCreateId(Long newCreateId) {
		createId = newCreateId;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String newCreator) {
		creator = newCreator;
	}

	public java.sql.Date getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(java.sql.Date newCreatTime) {
		creatTime = newCreatTime;
	}

	public String getEditor() {
		return editor;
	}

	public void setEditor(String newEditor) {
		editor = newEditor;
	}

	public Long getEditorId() {
		return editorId;
	}

	public void setEditorId(Long newEditorId) {
		editorId = newEditorId;
	}

	public java.sql.Date getEditTime() {
		return editTime;
	}

	public void setEditTime(java.sql.Date newEditTime) {
		editTime = newEditTime;
	}

	public Integer getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(Integer newIsdelete) {
		isdelete = newIsdelete;
	}

	public ProductInfor getProductInfor() {
		return productInfor;
	}

	public Double getWidth() {
		return width;
	}

	public void setWidth(Double width) {
		this.width = width;
	}

	public Double getHeight() {
		return height;
	}

	public void setHeight(Double height) {
		this.height = height;
	}

	public Double getLongness() {
		return longness;
	}

	public void setLongness(Double longness) {
		this.longness = longness;
	}
	
	public List<GiftGroupVO> getGiftGroupVO() {
		return giftGroupVO;
	}
	public void setGiftGroupVO(List<GiftGroupVO> giftGroupVO) {
		this.giftGroupVO = giftGroupVO;
	}
	
	public Integer getIsdemo() {
		return isdemo;
	}
	public void setIsdemo(Integer isdemo) {
		this.isdemo = isdemo;
	}

}
